import { ThemeConfig } from 'antd'
import { ThemeMode, VerifyType } from '@/global/constant'
import { IRootState } from '@/store'

export interface IThemeConfig {
  colorPrimary?: string
  mode?: ThemeMode
}

// 拷贝并更改原来主题配置的一个属性为其他类型
type MyThemeConfig = ThemeConfig
export type NewThemeConfig = Omit<MyThemeConfig, 'algorithm'> & {
  algorithm?: ThemeMode
}

export interface ILoginStatus {
  flag: boolean
  userName?: string
  password?: string
}

export interface IGetCode {
  type: VerifyType
  data: string
}

export interface IThunkState {
  state: IRootState
}

export interface IStandardOptions {
  value: string | number
  label: string
}
